<script>
    window.onload = function() {
        var gitalk = new Gitalk({
            clientID: '<%= commentSetting.gitalkSetting.clientId %>',
            clientSecret: '<%= commentSetting.gitalkSetting.clientSecret %>',
            repo: '<%= commentSetting.gitalkSetting.repository %>',
            owner: '<%= commentSetting.gitalkSetting.owner %>',
            admin: ['<%= commentSetting.gitalkSetting.owner %>'],
            id: (location.pathname).substring(0, 49), // Ensure uniqueness and length less than 50
            distractionFreeMode: false // Facebook-like distraction free mode
        })

        gitalk.render('gitalk-container')
    }
</script>